# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=rww-attack
_pkgname=RWW-Attack
pkgver=0.9.2
pkgrel=9
pkgdesc='Performs a dictionary attack against a live Microsoft Windows Small Business Server.'
arch=('any')
groups=('blackarch' 'blackarch-webapp')
url='http://packetstormsecurity.com/files/79021/Remote-Web-Workplace-Attack-Tool.html'
license=('GPL')
depends=('python2' 'python2-pycurl')
makedepends=('unzip')
source=("https://dl.packetstormsecurity.net/Crackers/RWW-Attack-$pkgver.zip")
sha512sums=('2e1d3da982813f14aebae2c5b9ed024e74687a12c95f8ff07f2ab68d474ed95fde13ea8ec662ae92e823df6d918a6bdfa6d65b92d87a471d8079d52e20240587')

prepare() {
  cd "$_pkgname-$pkgver"

  sed -i 's:/usr/bin/python:/usr/bin/env python2:' "$_pkgname-$pkgver.py"
}

package() {
  cd "$_pkgname-$pkgver"

  install -Dm 755 "$_pkgname-$pkgver.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README
}

